Platform Explorer / Nuxeo Platform 2023.9

Extension point connection

Documentation

Extension point used to configure access to a MongoDB server or cluster. The service will return the 'default' access if the asked one hasn't been contributed.

This sets up a MongoClient; server is mandatory.

    <connection>
        <server>mongodb://bob:pass@localhost:27017,otherhost:27018/mydb?replicaSet=test;connectTimeoutMS=300000</server>
        <dbname>mydb</dbname>
        <ssl>true</ssl>
        <trustStorePath>/path/to/cacerts.jks</trustStorePath>
        <trustStorePassword>changeit</trustStorePassword>
        <trustStoreType>jks</trustStoreType>
        <keyStorePath>/path/to/keystore.jks</keyStorePath>
        <keyStorePassword>changeit</keyStorePassword>
        <keyStoreType>jks</keyStoreType>
    </connection>

See http://docs.mongodb.org/manual/reference/connection-string/ for the mongodb:// URI syntax.

Aliases

  • org.nuxeo.ecm.core.mongodb.MongoDBComponent--connection
  • org.nuxeo.mongodb.core.MongoDBComponent--connection

Contribution Descriptors

  • Class: org.nuxeo.runtime.mongodb.MongoDBConnectionConfig

Contributions

No known contributions.